// 业务管理
let baseName = '业务管理'
export const menu = {
    title: '业务管理',
    path: '/business/main/',
    name: 'business',
    meta: {
        keepAlive: true
    },
    component: resolve => {
        require(['@/pages/index/index.vue'], resolve)
    },
    redirect: {
        name: 'business.make'
    },
    children: [
        {
            title: '报关制单',
            path: '/business/decl',
            name: 'business.decl',
            meta: {
                keepAlive: true, //是否缓存页面
                breadcrumb: [baseName, '报关制单']
            },
            component: r => require.ensure([], () => r(require('@/pages/business/decl/index')), 'business.decl')
        },
        // {
        //     title: '报关接单',
        //     path: '/business/decl/make',
        //     name: 'business.make',
        //     meta: {
        //         keepAlive: true, //是否缓存页面
        //         breadcrumb: [baseName, '报关接单']
        //     },
        //     component: r => require.ensure([], () => r(require('@/pages/business/decl/make/index')), 'business.make')
        // },
        // {
        //     path: '/system/user/add',
        //     name: 'addUser',
        //     component: r => require.ensure([], () => r(require('@/pages/system/usermanage/add/index')), 'addUser')
        // },
        // {
        //     path: '/system/user/details',
        //     name: 'detailsUser',
        //     component: r => require.ensure([], () => r(require('@/pages/system/usermanage/details/index')), 'detailsUser')
        // }
    ]
}

// [业务演示] 路由设置
export const router = {
    ...menu,
    children: [].concat(...menu.children.map(e => e.children || e))
}